<div data-ng-controller="ChangePasswordCntrl">
	<div class="page-header">
		<h3>Change Password</h3>
	</div>
	<div ng-show="error" class="alert alert-danger" role="alert">
		<strong>Error!</strong> {{error}}
	</div>
	<div class="row">
		<div class="col-sm-6 col-md-4">
			<form name="form" novalidate role="form" data-ng-submit="change()">
				<div class="form-group" data-ng-class="{'has-error': form.pwd.$invalid && form.pwd.$touched}">
					<div class="input-group">
			          	<div class="input-group-addon"><i class="fa fa-lock"></i></div>
						<input class="form-control" name="pwd" placeholder="Password" name="password" type="password" 
							required data-ng-model="pwd">
					</div>
				</div>
				<div class="form-group" data-ng-class="{'has-error': form.cnfpwd.$invalid && form.cnfpwd.$touched}">
					<div class="input-group">
			          	<div class="input-group-addon"><i class="fa fa-lock"></i></div>
						<input class="form-control" name="cnfpwd" placeholder="Confirm Password" name="cnfpassword" type="password" 
							required data-ng-model="cnfpwd">
					</div>
				</div>
				<button type="submit" class="btn btn-info" data-ng-disabled="form.$invalid">
					Change <span><i class="fa fa-sign-in"></i></span>
				</button>
			</form>
		</div>
	</div>
</div>
